<include file="Public:header"/>
<script type="text/javascript" src="__WEBPUBLIC__/Admin/laydate/laydate.js"></script>
<!--主页面-->
<div id="main-content" class="content">
    <ul class="breadcrumb">
        <li><a href="/">首页</a></li>
        <li class="active"><a href="">文章管理</a></li>
        <li class="active">图文列表</li>
    </ul>

    <div class="page-header page-header1 clearfix">
        <h3>文章管理</h3>
        <ul class="nav nav-tabs">    
            <li class="active">
                <a href="{:U('Article/articleList')}">图文列表</a>
            </li>
            <!--<li>-->
                <!--<a href="{:U('Article/addArticle')}">添加文章</a>-->
            <!--</li>-->
        </ul>
    </div>
    <div class="search-content">
        <form action="{:U('Article/articleList')}" method="post"class="search-form form-inline" role="form">
            <div class="form-group">
                <label class="sr-only" for="title">文章标题</label>
                <input class="earch-input form-control" id="title" type="text" name="title" value="{$request.title}" placeholder="文章标题"/>　
            </div>
            <div class="form-group">
                <label class="sr-only" for="title">商家账号或名称</label>
                <input class="earch-input form-control" id="name" type="text" name="name" value="{$request.title}" placeholder="商家账号或名称"/>　
            </div>
            &nbsp;&nbsp;
            <input placeholder="请输入开始日期" name="start_time" value="{$start_time}" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" style="width: 180px;height:34px;border-radius:5px">&nbsp;&nbsp;
            <input placeholder="请输入结束日期" name="end_time" value="{$end_time}" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" style="width: 180px;height:34px;border-radius:5px">
            <style>
                #laydate_ys{
                    overflow: hidden;!important;
                }
                .laydate_body .laydate_bottom{
                    height: 40px;!important;
                }
            </style>
            <button type="submit" class="btn derive">查询</button>　
        </form>
    </div>
    <div class="content-box-table">
        <form action="{:U('Article/delArticle')}" method="post" class="batch-form">
            <table class="table table-striped table-framed table-hover">
                <thead>
                    <tr>
                        <th width="4%">
                            <input class="check-all" type="checkbox" />
                        </th>
                        <th>商家名称</th>
                        <th>浏览量</th>
                        <th>封面图</th>
                        <th>文章标题</th>
                        <th>文章简介</th>
                        <th>发布时间</th>
                        <th width="10%">操作</th>
                    </tr>
                </thead>
                <tbody class="tbody">
                    <if condition="empty($list)">
                        <tr style="font-size:14px;text-align: center;"><td colspan="20">暂无数据</td></tr>
                    </if>
                    <volist name="list" id="v">
                        <tr>
                            <td><input type="checkbox" value="{$v['art_id']}" name="art_id[]"/></td>
                            <td>{$v['shop_name']}</td>
                            <td>{$v['click_num']}</td>
                            <td>
                                <if condition="$v['pic'] neq ''">
                                    <img src="/{$v['pic']}" style="max-height: 100px;max-width: 100px;">
                                    <else/>
                                    暂无封面
                                </if>
                            </td>
                            <td>{$v['title']}</td>
                            <td>{$v['desc']}</td>
                            <td>{$v['ctime']|date="Y-m-d H:i:s",###}</td>
                            <td>
                                <a href="{:U('Article/articleDetail',array('art_id'=>$v['art_id']))}" title="查看详情" class="modify">
                                   <span class="icon glyphicon glyphicon-list-alt"></span>
                                </a>&nbsp;
                                <!--<a href="#" title="删除" class="delete-delete">-->
                                    <!--<span class="icon glyphicon glyphicon-remove"></span>-->
                                <!--</a><input type="hidden" value="{:U('Article/delArticle',array('art_id'=>$v['art_id']))}">-->
                            </td>
                        </tr>
                    </volist>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="20">
                            <div class="fr">
                                {$page}
                            </div>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </div>
</div>


<script type="text/javascript">

</script>
<include file="Public:footer"/>
